<!--#include file="./doctype.html"-->
<title><%=editTitle%>模板-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<ol class="breadcrumb">
		<li><a href="<%=fileName%>?q=index">列表首页</a></li>
		<li class="active"><a href="javascript:;" class="reload"><%=editTitle%></a></li>
	</ol>
	<form method="post" action="<%=fileName%>?q=save" class="mb10" role="form">
		<input type="hidden" name="id" value="<%=iid%>">
		<div class="form-group fix">
			<input id="viewName" name="viewName" class="form-control inline w30" placeholder="模板名称" value="<%=data(0)%>" />
			<label class="inline control-label" for="viewName">模板名称</label>
		</div>
		<div class="form-group fix">
			<label class="inline control-label" for="viewContent">模板内容(支持HTML代码)</label>
			<textarea id="viewContent" name="viewContent" class="form-control" rows="10" placeholder="模板内容"><%=app.hec(data(1))%></textarea>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default control-label">
                <input name="isStop" value="<%=data(2)%>" type="checkbox"
                <% if app.cj_bool(data(2)) then %>checked="checked"<% End if %>
                > 是否禁用？
            </label>
		</div>
		<div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
	$('#viewName,#viewContent').checkEmpty();
$(this)
	.on('submit', 'form', function(){
		return $.submitForm('#viewName,#viewContent');
	});
});
</script>
</body>
</html>